package customerEnter.Frame.bean;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import customerEnter.Frame.Annotation.FrameOneToMay;
import customerEnter.Frame.Annotation.FrameOneToOne;
import customerEnter.Frame.Enum.FrameOneOrMay;

/**
 * 
 * 类名称：FrameBeansModels
 * 
 * 类描述： bean 的模擬 (模擬一個bean 的結構) 一般類型數據反射
 * 
 * class a(){
 * 
 * string a; string b; string c; class aB; class ac;
 * 
 * }
 * 
 * 创建人：dy
 * 
 * 创建时间：2017-4-11 下午2:23:16
 * 
 */
public class FrameBeansModels {

	/**
	 * bean的屬性模擬
	 */
	public Field[]							fields;

	/**
	 * bean 的類
	 */
	public Map<String, FrameBeansModels>	frameBeansMap	= new HashMap<String, FrameBeansModels>();

	List<Map<String, Object>>				list			= new ArrayList<Map<String, Object>>();

	String									name;
	public String							primaryKey;												// 主鍵

	public FrameOneOrMay					FrameOneOrMay;

	public FrameOneToMay					frameOneToMay;
	public FrameOneToOne					frameOneToOne;

	public Field[] getFields() {
		return fields;
	}

	public void setFields(Field[] fields) {
		this.fields = fields;
	}

	public Map<String, FrameBeansModels> getFrameBeansMap() {
		return frameBeansMap;
	}

	public void setFrameBeansMap(Map<String, FrameBeansModels> frameBeansMap) {
		this.frameBeansMap = frameBeansMap;
	}

	public List<Map<String, Object>> getList() {
		return list;
	}

	public void setList(List<Map<String, Object>> list) {
		this.list = list;
	}

	public String getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(String primaryKey) {
		this.primaryKey = primaryKey;
	}

	public FrameOneOrMay getFrameOneOrMay() {
		return FrameOneOrMay;
	}

	public void setFrameOneOrMay(FrameOneOrMay frameOneOrMay) {
		FrameOneOrMay = frameOneOrMay;
	}

	public FrameOneToMay getFrameOneToMay() {
		return frameOneToMay;
	}

	public void setFrameOneToMay(FrameOneToMay frameOneToMay) {
		this.frameOneToMay = frameOneToMay;
	}

	public FrameOneToOne getFrameOneToOne() {
		return frameOneToOne;
	}

	public void setFrameOneToOne(FrameOneToOne frameOneToOne) {
		this.frameOneToOne = frameOneToOne;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
